﻿using HslCommunication.Core;
using PLC.Domain.Dto;
using PLC.Domain.Enum;
using PLC.Domain.Models;
using PLC.Domain.Service.IRepository;

namespace PLC.Domain.ScheduledTasks.Strategy.Write;

public class WriteResultStrategy:BaseWrite
{
    public WriteResultStrategy(IPLCRepository plcRepository) : base(plcRepository)
    {
    }


    public override List<EnumWriteGroup> WriteGroups { get; protected set; } = new List<EnumWriteGroup>()
    {
        EnumWriteGroup.上端板读码反馈,
        EnumWriteGroup.下端板读码反馈,
        EnumWriteGroup.双极板读码反馈,
        EnumWriteGroup.堆叠加工完成,
        EnumWriteGroup.气密加工完成,
        EnumWriteGroup.膜电极读码反馈,
        EnumWriteGroup.读取数据反馈反馈
       
    };

    public override void Write(IReadWriteNet readWriteNet, PLCConfig plcConfig, DtoDataConfig dataConfig, int triggerResult)
    {
       WriteBase(readWriteNet,plcConfig,dataConfig,triggerResult);
    }

}